home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / discs / utilities / utility_02 / converters / !Draw->CGM / !Help next >
Text File  |  1996-02-05  |  15KB  |  448 lines

  1.                       
  2.                             CAREWARE
  3.                             ~~~~~~~~
  4.  
  5.                     !Draw->Cgm Version 1.5 !help.
  6.  
  7.  
  8.          THIS PROGRAM IS CAREWARE IS IS NOT PUBLIC DOMAIN
  9.                                         ~~~
  10.  
  11. The following have written permission to reproduce this software on
  12. their respective Careware disks :-
  13.  
  14.       Norwich Computer Services : Careware Disks
  15.       Alex Bar  (Furth Germany ): German Careware Disks
  16.       ARM Club  ( CD-ROM )
  17.  
  18. They will also be supplied with updates.
  19.  
  20. The Author will also upload it to Careware sections on Arcade and NCS bbs.
  21. From which it maybe downloaded.
  22.  
  23. It may NOT be uploaded by anyone other than the Author. 
  24.  
  25. It may NOT be reproduced by any other means ( other than above )
  26. without written consent of the author.
  27.  
  28. Arcade and NCS do NOT have authority to authorise copying by any means other than
  29. above.
  30.  
  31.  
  32.  
  33. Last updated 
  34. ~~~~~~~~~~~~
  35.    Application   : 15th  April 1993
  36.    Documentation : 15th  April 1993
  37.                                        
  38.                       
  39. !Draw->CGM is a Utility for converting Acorn Draw files to CGM Computer
  40. Graphics Metafiles as may be imported into Lotus FreeLance and other
  41. Graphics tools on the PC.
  42.  
  43. It has been tested with Freelance V2.01 and Freelance V3.00
  44.  
  45. Installation
  46. ~~~~~~~~~~~~
  47.  
  48. The DrawCgm_arc file should have been restored to a directory named
  49. !Draw->CGM. Which should contain the following files :-
  50.  
  51.  
  52.            !Run        : Draw->Cgm Startup file.
  53.            !Sprites    : Draw->Cgm Application Sprites
  54.            !Templates  : Template files
  55.            Draw-cgm    : Draw->Cgm Application.
  56.            Palette     : Default conversion palette.
  57.            Freelance   : Freelance V2 palette
  58.            ~~config    : Configuration file for Draw->Cgm.
  59.            !Help       : This file.
  60.  
  61. Tailoring
  62. ~~~~~~~~~
  63.  
  64.     The !run file should be altered to suite your requirements :-
  65.  
  66.  
  67.     Modules required :-
  68.  
  69.        The Shared C Library should be loaded as appropriate for
  70.        your setup. The supplied !run file assumes that the C
  71.        shared library module is in !system.modules.
  72.  
  73.        Colourtrans is required to map colours to default. 
  74.                        
  75.     Variables required :-
  76.  
  77.        draw-cgm$dir is required in order for draw->cgm to find its various
  78.        configuration files.
  79.  
  80.     Storage required :-
  81.  
  82.       !Draw->CGM has been tested with a wimpslot size of 128k
  83.        on a machine with 32k pages. lower values may be possible
  84.        on machines with smaller page sizes.
  85.  
  86.        The file to be converted is loaded into a buffer claimed from
  87.        the next slot. The space is return immediately after the conversion,
  88.        so you should not be able to see the change.
  89.  
  90.        Storage is also claimed to flatten Beziers.
  91.  
  92.        If !Draw->CGM  prompts that it does not have enough memory to process, 
  93.        then !Draw->CGM must be restarted, having made provision that 
  94.        the next slot is large enough.
  95.               
  96.  
  97. Operation
  98. ~~~~~~~~~
  99.  
  100.  
  101.      1) First click on the !Draw->CGM icon. This will install the !Draw->CGM
  102.         icon on the icon bar.
  103.  
  104.      2) To convert a Draw file, drag the file to the !Draw->CGM icon on
  105.         the icon bar. This will popup a save Cgm window. Drag the Cgm
  106.         file icon to the required destination. 
  107.  
  108.         NOTE : 
  109.  
  110.         The conversion is not commutable i.e. a file convert to CGM then converted
  111.         back to draw will not be exactly the same, therefore it is advisable that
  112.         the source and destination be in different directories
  113.         
  114.  
  115.  
  116. Apparent Freelance V2.01 Restrictions
  117. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  118.  
  119.        Freelance does not allow for filled objects within filled objects.
  120.        Freelance does not use standard Metafile descriptions of polygon
  121.        outline line types, but uses a user defined description unique
  122.        to itself.
  123.               
  124. Current Restrictions to be removed in a future release
  125.  
  126.        TextAreas are currently not supported.
  127.        Line endings are currently ignored.
  128.  
  129. Translation Options
  130. ~~~~~~~~~~~~~~~~~~~
  131.  
  132.        Whilst CGM is a standard definition not all programs recognise all CGM
  133.        elements. Options are available to influence !DrawCGM's creation of the
  134.        target CGM file. The options window is available via the icon menu.
  135.  
  136.        Colour Translation
  137.        ~~~~~~~~~~~~~~~~~~
  138.               
  139.        Fixed Colours
  140.        -------------
  141.  
  142.        Uses colours based on the palette entries in the Palette file
  143.        in the !DrawCGM directory. A copy is also supplied in the file
  144.        Freelance. If you decide to alter palette please leave Freelance
  145.        alone so that others may restore the Palette to that originally
  146.        supplied.
  147.                      
  148.        Palette Colours
  149.        ---------------
  150.  
  151.        Uses a colour table. The colour table being created from
  152.        the wimp palette at the time of conversion.
  153.  
  154.        Direct colours
  155.        --------------
  156.  
  157.        This uses the !DRAW RGB values to construct CGM RGB values.
  158.        This should give minimum loss of colour information.
  159.        But does not seem to be supported by many packages
  160.        that can import Metafiles.
  161.                      
  162.  
  163.        Other Translations
  164.        ~~~~~~~~~~~~~~~~~~
  165.  
  166.        Polygon Set ( Filled Areas )
  167.        ----------------------------
  168.  
  169.        The draw format is quite a rich graphics description. In order to
  170.        support filled areas correctly the CGM element disjointed polygon
  171.        is required. Unfortunately most PC packages support only a CGM 
  172.        subset. As a result Disjointed Polygon is often not supported or not
  173.        recognised.
  174.  
  175.        The above problem most often occurs when text has been converted
  176.        into draw format i.e. by !FontFX, !FontEd !Drawtext etc. 
  177.  
  178.        In order to address this problem !Draw->CGM takes note Polygon set option.       
  179.  
  180.        The following are the recommended approaches to tackling
  181.        the problem.
  182.  
  183.        1) If the target CGM environment supported Disjointed Polygon.
  184.           Then set the polygon set option.
  185.  
  186.        2) If the target CGM environment does not supported Disjointed Polygon.
  187.           Then do not set the polygon set option. If !Draw->CGM then encounters
  188.           an internal move in the path, it will change the outline colour
  189.           to the background and then redraw the outline in the correct
  190.           colour as a non filled polygon. The above should look correct if
  191.           the target environment takes the background colour correctly into 
  192.           account.
  193.  
  194.        3) If 2) fails and produces filled areas with the odd fine white line.
  195.           Then a third method can be used, but this does involve some manual 
  196.           effort. Proceed as follows :-
  197.  
  198.               a) Make sure any problem areas are unfilled.
  199.  
  200.               b) Translate the Draw file to CGM using !Draw->CGM.
  201.  
  202.               c) Use !CGM->Draw to translate the CGM file back to draw.
  203.                  This will make sure that any internal moves are changed
  204.                  to separate paths.
  205.  
  206.               d) With the new Draw file fill in the required areas.
  207.                  This may well require that some lines are sent to the back
  208.                  or others brought to the front. Other areas will have to be 
  209.                  filled white. For example if one takes a capital A as
  210.                  a draw file and using the above. The central 'triangle'
  211.                  will have to be at the front and filled white.
  212.  
  213.               e) Finally convert the draw file to !Draw->CGM
  214.  
  215.        Restricted Text
  216.        ---------------
  217.  
  218.        Selection of this option will causes text to be output using the CGM operation
  219.        Restricted Text, this should improve text translation where text has been
  220.        resized.
  221.  
  222.        Perimeter / Edges
  223.        -----------------
  224.  
  225.        Selection of this option will causes edge/perimeter values to be output instead
  226.        of just line values. Will be need for most translations except Freelance V2.
  227.  
  228.        Sprite / Cell Array
  229.        -------------------
  230.  
  231.        Selection of this option will causes sprites to be output as CGM cell arrays,
  232.        note however few if any PC packages support import of CGM files with cell arrays
  233.  
  234. Other Translation factors
  235. ~~~~~~~~~~~~~~~~~~~~~~~~~
  236.  
  237.        Bezier Curves
  238.        -------------
  239.  
  240.        These are translated to a polyline or polygon.
  241.  
  242.        Ellipse Translation
  243.        -------------------
  244.  
  245.        Draw holds ellipses as a series of bezier curves. these are
  246.        therefore translated as polyline or polygon.
  247.  
  248.        !FontEd Characters
  249.        ------------------
  250.  
  251.        !FontEd allows individual characters to be transferred to another
  252.        application as draw files. Therefore a character dragged from
  253.        !FontEd into draw will be translated by Draw->CGM accordingly.
  254.  
  255.        Restrictions
  256.        ------------
  257.  
  258.        Sprites are only supported in the translation to CGM if the
  259.        target CGM supports the Cell Array. Most PC package seem to
  260.        ignore or complain at the CGM Cell array element.
  261.  
  262. Config File.
  263. ~~~~~~~~~~~~~~
  264.  
  265.  The ~~config file controls font translation.
  266.  
  267.  The first entry is the number of CGM font entries ( Integer )
  268.  
  269.  Followed by the CGM names each terminated by a comma ( To allow for names with spaces ). 
  270.  
  271.  The next entry is the number of Draw font entries.
  272.        
  273.  The appropriate number of font entries then follow.
  274.  
  275.  A Draw font entry consist's of following separated by spaces.
  276.  
  277.     A Acorn Font name.                    ( String  )
  278.     The required Freelance font number    ( Integer )
  279.     height adjustment multiplier          ( Integer )
  280.     height adjustment divisor             ( Integer )
  281.                           
  282.   Font Number 
  283.  
  284.   The corresponding CGM font numbers ( Some packages require font 
  285.   numbers to start at 0 others 1 
  286.  
  287.   Height adjustment 
  288.  
  289.   The height read from the draw file is adjusted as follows
  290.  
  291.         ( height * multiplier ) / divisor.
  292.  
  293.   Tailoring CGM font names
  294.  
  295.   To make the most of font translation you will need to modify the CGM
  296.   font names for your target environment. The best way to do this is to
  297.   create a diagram containing the required fonts in the target environment.
  298.   Then export this to CGM. Use !CGM->Draw on the CGM file with the trace
  299.   option turned on. Examine the trace file for the appropriate font names.
  300.  
  301.  
  302.        
  303. Hints on creating foils
  304. ~~~~~~~~~~~~~~~~~~~~~~~
  305.  
  306.        Rotated & Fancy Characters.
  307.  
  308.        Characters from Outline fonts may dragged from !FontEd to
  309.        !Draw. Once in !Draw they may be enlarged, rotated. They
  310.        will be translated to a filled polygon in
  311.  
  312. CGM File type
  313. ~~~~~~~~~~~~~
  314.        The CGM file type is 405 which is a Norwich Computer Services allocated
  315.        file number. NCS are allocating some user file numbers in an attempt to
  316.        reduce the chances of a file number clash. The number will only change 
  317.        again if Acorn allocate an official file number to ANSI Graphic Metafiles.
  318.  
  319. Importing into Freelance
  320. ~~~~~~~~~~~~~~~~~~~~~~~~
  321.  
  322.        Transfer the file to the PC. The easiest way to do this is with
  323.        !PCDir. !PCDir allows for a draw file to be drag directly to the
  324.        !Draw->CGM icon and then straight to a PC diskette.
  325.  
  326.        Make sure the file has an extension appropriate for
  327.        importing into Freelance, the default file extension is CGM.
  328.        
  329.              Select : File.
  330.                       Import
  331.                       Then file to be imported.
  332.  
  333.        The file extension and path to be used for loading maybe changed
  334.        with Option selection. 
  335.  
  336. Note  : From !PCDir version 0.8 onwards, it is possible to have a 
  337.         configuration file that translates file type 405 to CGM.
  338.  
  339. What if the CGM will NOT load into required PC Package
  340. ------------------------------------------------------
  341.  
  342.      1) The point of having several options that control the creation of CGM files
  343.         is to be able to cope with variations in requirements of the target environments.
  344.         Ideally any importer of CGM files should be able to read any valid CGM file, unfortunately
  345.         this far from true for most PC packages, therefore you may need to experiment with
  346.         different options.                 
  347.  
  348.         Tip: If the package concerned can export a CGM file, then you may find !Draw->CGM's 
  349.         companion application !CGM->Draw useful as it has a quite detailed trace, which may
  350.         give some clues as to what the imported expects. Note this assumes that the package
  351.         will import what it exports ( Known NOT to be true for all PC packages !!! )
  352.  
  353.      2) Some of the better packages have a trace facility or provide good diagnostics, if you
  354.         are using such a facility please send the details when reporting problems ( Thanks ).
  355.  
  356.      3) If you have access to other packages try importing into these and then re-exporting
  357.         to CGM. If the re-exported file succeeds, please send both successful and failing
  358.         files when reporting the problem (Thanks)
  359.  
  360.      4) Finally !Draw->CGM 1.1 is know to work for Freelance Plus Version 2 & 3 / PageMaker
  361.         Interleaf and reported to work with CorelDraw, so why not write to the package and
  362.         ask why their package cannot.
  363.         
  364.  
  365.  
  366. Copyright & Contributions
  367. ~~~~~~~~~~~~~~~~~~~~~~~~~
  368.  
  369. This software carries no warranty, either express or implied. 
  370. I can not guarantee that it is free of bugs or give any warranty
  371. about itæs suitability for use.
  372.                                                    
  373. The status of !Draw->CGM is Careware.
  374.  
  375. Permission is granted to Norwich Computer Services to reproduce !CGM->Draw on Careware disks.
  376.  
  377. The software will be uploaded to Careware sections on Arcade and Archive Bulletin Boards,
  378. it may only be uploaded by the author. It may not be uploaded by anybody else or
  379. to any other board.
  380.                             
  381. This software may NOT be distributed by public domain libraries.
  382.  
  383. If you did not obtain the software from a Careware disk or by subscription to one of the
  384. Bulletin Board Careware sections. ( i.e. You obtained it from a friend who does, say. ) 
  385. Then please send a contribution to either
  386.  
  387. Heatherley Cheshire Home
  388. Effingham Lane,
  389. Copthorne,
  390. Sussex.
  391. RH10 3HS.
  392.  
  393.  
  394. Registered Charity Number : 218186
  395.  
  396. or
  397.  
  398. Chipstead Lake Cheshire Home
  399. Chevening Road
  400. Chipstead
  401. Sevenoaks
  402. Kent
  403. TN13 2SD.
  404.  
  405. The software may not otherwise be copied or distributed without the Authors written permission.
  406.  
  407.  
  408. Copyright remains solely the authors. (C) Keith Sloan 
  409.  
  410. I may be contacted by electronic mail at the following :-
  411.  
  412. User:  Keith Sloan on ArcadeBBS  : London  081 654 2212 
  413.  
  414.  Fidonet  : Keith Sloan @ 2:254/7.0
  415.  Internet : keiths@cix.compulink.co.uk
  416.  
  417.  
  418. Version History
  419. ~~~~~~~~~~~~~~~
  420.  
  421.   Various BetaTest Version
  422.  
  423.   1.1  March 1992 : First Non BetaTest
  424.  
  425.   1.2  May   1992 : Support for Restricted Text
  426.  
  427.   1.3  June  1992 : Restricted Text an option.
  428.                     Font list supported.
  429.  
  430.   1.4  Jan   1993 : Text at an angle
  431.                     Do not barf as Risc OS 3.10 draw orders.
  432.  
  433.   1.5  April 1993 : Recognise Risc OS 3.10 Draw paper options
  434.  
  435. Improvement areas
  436. ~~~~~~~~~~~~~~~~~
  437.   
  438.   Filled areas with more than one move could be improved a lot. 
  439.  
  440.  
  441. FootNote
  442. ~~~~~~~~
  443.  
  444.   This application has a companion application !CGM->Draw, to convert from
  445.   CGM format to draw.
  446.  
  447.   Also an application to converting dxf to/from cgm 
  448.   See Author for more details.